package org.ssh.service;

import java.util.List;

import org.ssh.dao.IBaseDao;
import org.ssh.dao.IScrapDao;
import org.ssh.pojo.Scrap;

public interface IScrapService<T> {
      
 
	public List<T> queryScrap(String scrapname,Class<T> clazz);
     
    public void addScrap(T scrap);
      
    public void modifyScrap(T scrap);
    
    public void deleteScrap(int scrapid,Class<T> clazz);
      
    public T getScrap(Class<T> clazz, int scrapid);
      
    public IScrapDao getScrapDao();
  
    public void setScrapDao(IScrapDao scrapdao);
    
    public boolean scrapCheck(int scrapid,int assetid, int userid) throws Exception;
}  